package com.caesar.innerclass;

/**
 * @author caesar
 * @date 2025/7/13
 * @Description:
 * @apiNote
 */
public enum Status {
    FREE("空闲"), USED("在用"), SCRAP("报废");
    public String description;
    public int value = ordinal();

    Status(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Status{" +
                "description='" + description +
                "} ";
    }

    public static Status getByValue(int value){
        return values()[value];
    }
}
